package com.gonsin.easycount.model;

import lombok.Data;

/**
 * 人员及选项
 */
@Data
public class UserInfoOption<T> {

    /**
     * 人员关键词
     */
    private String userInfo;

    /**
     * 选项关键词
     */
    private String[] option;

    private T extraData;

    public UserInfoOption(String userInfo, String[] option, T extraData) {
        this.userInfo = userInfo;
        this.extraData = extraData;
        this.option = option;
    }

    public UserInfoOption(String userInfo, String option, T extraData) {
        this.userInfo = userInfo;
        this.extraData = extraData;
        this.option = new String[]{option};
    }

    public UserInfoOption(String userInfo, String[] option) {
        this.userInfo = userInfo;
        this.option = option;
    }

    public UserInfoOption(String userInfo, String option) {
        this.userInfo = userInfo;
        this.option = new String[]{option};
    }

    public UserInfoOption() {
    }
}
